# utf-8

import unittest

from solution import Solution


class TestLc(unittest.TestCase):
    def setUp(self):
        self.soluton_inst = Solution()
        print("setUp...")

    def tearDown(self):
        del self.soluton_inst
        print("tearDown...")

    def test_case_01(self):
        start = "AACCGGTT"
        end = "AACCGGTA"
        bank = ["AACCGGTA"]
        res = self.soluton_inst.minMutation(startGene=start, endGene=end, bank=bank)
        self.assertEqual(res, 1)

    def test_case_02(self):
        start = "AACCGGTT"
        end = "AAACGGTA"
        bank = ["AACCGGTA", "AACCGCTA", "AAACGGTA"]
        res = self.soluton_inst.minMutation(startGene=start, endGene=end, bank=bank)
        self.assertEqual(res, 2)

    def test_case_03(self):
        start = "AAAAACCC"
        end = "AACCCCCC"
        bank = ["AAAACCCC", "AAACCCCC", "AACCCCCC"]
        res = self.soluton_inst.minMutation(startGene=start, endGene=end, bank=bank)
        self.assertEqual(res, 3)


if __name__ == "__main__":
    unittest.main()
